/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "设备作业记录",TableName = "equipmentoperationlogs",DBServer = "SmesDbContext")]
    public partial class equipmentoperationlogs:SmesEntity
    {
        /// <summary>
       ///作业记录唯一标识
       /// </summary>
       [Key]
       [Display(Name ="作业记录唯一标识")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string OperationID { get; set; }

       /// <summary>
       ///设备ID（关联设备表）
       /// </summary>
       [Display(Name ="设备ID（关联设备表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string EquipmentID { get; set; }

       /// <summary>
       ///生产批次ID（关联生产批次主表）
       /// </summary>
       [Display(Name ="生产批次ID（关联生产批次主表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string LotID { get; set; }

       /// <summary>
       ///工步ID（关联工步表）
       /// </summary>
       [Display(Name ="工步ID（关联工步表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string StepID { get; set; }

       /// <summary>
       ///作业状态：准备中/进行中/暂停/完成/异常终止
       /// </summary>
       [Display(Name ="作业状态：准备中/进行中/暂停/完成/异常终止")]
       [MaxLength(9)]
       [Column(TypeName="nvarchar(9)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string OperationStatus { get; set; }

       /// <summary>
       ///作业开始时间
       /// </summary>
       [Display(Name ="作业开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? StartTime { get; set; }

       /// <summary>
       ///作业结束时间
       /// </summary>
       [Display(Name ="作业结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndTime { get; set; }

       /// <summary>
       ///产出数量
       /// </summary>
       [Display(Name ="产出数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? OutputQuantity { get; set; }

       /// <summary>
       ///良品数量
       /// </summary>
       [Display(Name ="良品数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? QualifiedQuantity { get; set; }

       /// <summary>
       ///操作员ID（关联人员表）
       /// </summary>
       [Display(Name ="操作员ID（关联人员表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string OperatorID { get; set; }

       /// <summary>
       ///关联故障ID（异常终止时关联故障表）
       /// </summary>
       [Display(Name ="关联故障ID（异常终止时关联故障表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string RelatedFailureID { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Notes { get; set; }

       /// <summary>
       ///批次号
       /// </summary>
       [Display(Name ="批次号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string BatchNo { get; set; }

       
    }
}